package cn.wolfcode.shop.cloud.web.feign;


import cn.wolfcode.shop.cloud.Result;
import cn.wolfcode.shop.cloud.member.domain.User;
import cn.wolfcode.shop.cloud.member.feign.MemberFeignApi;
import cn.wolfcode.shop.cloud.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class MemberFeignClient implements MemberFeignApi {
    @Autowired
    private IUserService userService;

    @Override
    public Result<User> get(Long id) {
        return null;
    }
    @Override
    public Result<Boolean> refreshTime(String token) {
        return Result.success(userService.refreshTime(token));
    }
}
